home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / mcdiamon / mcdiamon.txt next >
Encoding:
Text File  |  1999-03-09  |  1.5 KB  |  8 lines

  1. This control will allow you to encrypt/decrypt a string or a file using the Diamond2 cipher. 
  2.  
  3. DIAMOND2 is a cipher designed to exceed DES in strength. DIAMOND2 uses a variable length key of at least 40 bits. The use of at least a 16 bytes key is recommended for long term protection of very sensitive data, as a hedge against the possibility of computing power increasing by several orders of magnitudes in the coming years.
  4.  
  5. It is conjectured that DIAMOND2 Lite (Mode 2) and a key length of 16 bytes is at least equivalent in security to the IDEA cipher, and more secure than the ageing DES algorithm.
  6.  
  7. The Diamond Encryption Algorithm (the immediate predecessor of DIAMOND2) suffered from a form of weak keys. It was possible for a key to result in all of the individual 256-byte substitution arrays to have the same contents if the position of the input key pointer and the key scheduling CRC value were the same at the start of the second substitution array as they were at the beginning of the first one. While the probability of this was low (one in about 240), it is possible that the regular substitution structure that resulted might have allowed a simplified analytical attack. To correct this, Diamond2 uses the contents of the substitution array just completed in filling the current substitution array (except for the first one, of course). This greatly increases the amount of state information in the tiny pseudorandom number generator used in key scheduling, such that this minor weakness is eliminated.
  8.